/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.lcfgly.Database;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author lcfgly
 */
@Entity
@Table(name = "user_conunt")
@NamedQueries({
    @NamedQuery(name = "UserConunt.findAll", query = "SELECT u FROM UserConunt u")})
public class UserConunt implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "uid")
    private Integer uid;
    @Column(name = "address")
    private String address;
    @Column(name = "phone")
    private String phone;
    @Column(name = "tel")
    private String tel;
    @Column(name = "email")
    private String email;
    @Column(name = "qq")
    private String qq;
    @Column(name = "hanye")
    private Short hanye;
    @Column(name = "xinqu")
    private String xinqu;
    @Column(name = "pinpai")
    private String pinpai;
    @Lob
    @Column(name = "allarc")
    private String allarc;
    @Lob
    @Column(name = "allcp")
    private String allcp;
    @Lob
    @Column(name = "allimg")
    private String allimg;
    @Basic(optional = false)
    @Column(name = "cssstyle")
    private short cssstyle;
    @Column(name = "cityid")
    private Integer cityid;
    @Column(name = "cityaddress")
    private String cityaddress;
    @Column(name = "ipcode")
    private Integer ipcode;
    @Column(name = "lat")
    private String lat;
    @Column(name = "lng")
    private String lng;
    @Column(name = "registertime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date registertime;
    @Column(name = "birthday")
    @Temporal(TemporalType.DATE)
    private Date birthday;

    public UserConunt() {
    }

    public UserConunt(Integer uid) {
        this.uid = uid;
    }

    public UserConunt(Integer uid, short cssstyle) {
        this.uid = uid;
        this.cssstyle = cssstyle;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public Short getHanye() {
        return hanye;
    }

    public void setHanye(Short hanye) {
        this.hanye = hanye;
    }

    public String getXinqu() {
        return xinqu;
    }

    public void setXinqu(String xinqu) {
        this.xinqu = xinqu;
    }

    public String getPinpai() {
        return pinpai;
    }

    public void setPinpai(String pinpai) {
        this.pinpai = pinpai;
    }

    public String getAllarc() {
        return allarc;
    }

    public void setAllarc(String allarc) {
        this.allarc = allarc;
    }

    public String getAllcp() {
        return allcp;
    }

    public void setAllcp(String allcp) {
        this.allcp = allcp;
    }

    public String getAllimg() {
        return allimg;
    }

    public void setAllimg(String allimg) {
        this.allimg = allimg;
    }

    public short getCssstyle() {
        return cssstyle;
    }

    public void setCssstyle(short cssstyle) {
        this.cssstyle = cssstyle;
    }

    public Integer getCityid() {
        return cityid;
    }

    public void setCityid(Integer cityid) {
        this.cityid = cityid;
    }

    public String getCityaddress() {
        return cityaddress;
    }

    public void setCityaddress(String cityaddress) {
        this.cityaddress = cityaddress;
    }

    public Integer getIpcode() {
        return ipcode;
    }

    public void setIpcode(Integer ipcode) {
        this.ipcode = ipcode;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public Date getRegistertime() {
        return registertime;
    }

    public void setRegistertime(Date registertime) {
        this.registertime = registertime;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (uid != null ? uid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof UserConunt)) {
            return false;
        }
        UserConunt other = (UserConunt) object;
        if ((this.uid == null && other.uid != null) || (this.uid != null && !this.uid.equals(other.uid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.lcfgly.Database.UserConunt[ uid=" + uid + " ]";
    }
    
}
